#include <bits/stdc++.h>
using namespace std;

#define int long long
const int N = 111;
int n;
int t[N<<2], lz[N<<2];


struct banzi{
    int x1,x2,y;

    bool operator< (const banzi& o) const{
        return y < o.y;
    }
}b[N];


signed main(){
    cin >> n;
    for ( int i=1; i<=n; i++ ) {
        int xx1, xx2, yy; cin >> xx1 >> xx2 >> yy;
        b[i] = {xx1,xx2,yy};
    }

    sort(b+1, b+1+n);

    for ( int i=1; i<=n; i++ ){
        
    }
}

